package com.demo2do.fms.entity.report;

import com.demo2do.core.utils.Alias;

/**
 *
 * @author Ark
 *
 */
@Alias("AppointmentStatus")
public enum AppointmentStatus {

    AUDITING("待审核", "数据量检查中"),
    
    REJECTED("已驳回", "已驳回"),
    
    PENDING("待处理", "预约成功"),
    
    PROCESSING("处理中", "处理中"),
    
    COMPLETED("已完成", "已生成"),
    
    FAILED("处理失败", "处理失败"),
    
    EXPIRED("已过期", "已过期");
    
    private String description;
    
    private String display;

    /**
     * @param description
     * @param display
     */
    private AppointmentStatus(String description, String display) {
        this.description = description;
        this.display = display;
    }

    /**
     * @return
     */
    public boolean isProcessing() {
        return this.equals(PROCESSING);
    }

    /**
     * @return
     */
    public String getDescription() {
        return description;
    }
    
    /**
     * @return
     */
    public String getDisplay() {
        return display;
    }
    
}
